﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 拣货任务实体.
/// </summary>
[SugarTable("wms_busi_pick_material_task","拣货任务")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiPickMaterialTaskEntity: CLDEntityBase
{
    /// <summary>
    /// 出货id.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingId", ColumnDescription = "出货id")]
    public string ShippingId { get; set; }

    /// <summary>
    /// 出货编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingNo", ColumnDescription = "出货编号")]
    public string ShippingNo { get; set; }

    /// <summary>
    /// 拣货单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PickNo",ColumnDescription = "拣货单号")]
    public string PickNo { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId",ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName",ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 规格.
    /// </summary>
    [SugarColumn(ColumnName = "F_Specification", ColumnDescription = "规格")]
    public string Specification { get; set; }

    /// <summary>
    /// 推荐库位id.
    /// </summary>
    [SugarColumn(ColumnName = "F_SellLocationId",ColumnDescription = "推荐库位id")]
    public string SellLocationId { get; set; }

    /// <summary>
    /// 推荐库位Code.
    /// </summary>
    [SugarColumn(ColumnName = "F_SellLocationCode",ColumnDescription = "推荐库位Code")]
    public string SellLocationCode { get; set; }

    /// <summary>
    /// 推荐库位名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_SellLocationName",ColumnDescription = "推荐库位名称")]
    public string SellLocationName { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 拣货时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_OperatorDate",ColumnDescription = "拣货时间")]
    public DateTime? OperatorDate { get; set; }

    /// <summary>
    /// 拣货人.
    /// </summary>
    [SugarColumn(ColumnName = "F_Operator",ColumnDescription = "拣货人")]
    public string Operator { get; set; }

    /// <summary>
    /// 拣货类型：1 原材料  3 成品.
    /// </summary>
    [SugarColumn(ColumnName = "F_PickType",ColumnDescription = "拣货类型：1 原材料  3 成品")]
    public int? PickType { get; set; }

    /// <summary>
    /// 关联单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_LinkNo",ColumnDescription = "关联单号")]
    public string LinkNo { get; set; }

    /// <summary>
    /// 下架id.
    /// </summary>
    [SugarColumn(ColumnName = "F_DownTaskId",ColumnDescription = "下架id")]
    public string DownTaskId { get; set; }

    /// <summary>
    /// 拣货状态：0 未拣货   1 拣货完成.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "拣货状态：0 未拣货   1 拣货完成")]
    public int? Status { get; set; }

    /// <summary>
    /// 取消时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelDate",ColumnDescription = "取消时间")]
    public DateTime? CancelDate { get; set; }

    /// <summary>
    /// 取消原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelReason",ColumnDescription = "取消原因")]
    public string CancelReason { get; set; }

    /// <summary>
    /// 取消人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelUser",ColumnDescription = "取消人")]
    public string CancelUser { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site",ColumnDescription = "Site")]
    public string Site { get; set; }
}